/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class TipoConsumoCriteria extends AbstractORMCriteria {
	public final IntegerExpression tipocon_ID;
	public final StringExpression tipo;
	public final ShortExpression monto_fijo;
	public final ShortExpression monto_variable;
	
	public TipoConsumoCriteria(Criteria criteria) {
		super(criteria);
		tipocon_ID = new IntegerExpression("tipocon_ID", this);
		tipo = new StringExpression("tipo", this);
		monto_fijo = new ShortExpression("monto_fijo", this);
		monto_variable = new ShortExpression("monto_variable", this);
	}
	
	public TipoConsumoCriteria(PersistentSession session) {
		this(session.createCriteria(TipoConsumo.class));
	}
	
	public TipoConsumoCriteria() throws PersistentException {
		this(orm.TrabajoAplicado1PersistentManager.instance().getSession());
	}
	
	public ConsumoCriteria createConsumoCriteria() {
		return new ConsumoCriteria(createCriteria("ORM_Consumo"));
	}
	
	public TipoConsumo uniqueTipoConsumo() {
		return (TipoConsumo) super.uniqueResult();
	}
	
	public TipoConsumo[] listTipoConsumo() {
		java.util.List list = super.list();
		return (TipoConsumo[]) list.toArray(new TipoConsumo[list.size()]);
	}
}

